import "@babel/polyfill";
/*
|--------------------------------------------------------------------------
| Ace Setup
|--------------------------------------------------------------------------
|
| Ace is the command line utility to create and run terminal commands.
| Here we setup the environment and register ace commands.
|
*/
import ace from "@adonisjs/ace";

const registedCommandList = [
  "./commands/demo", // 命令demo测试
  "./commands/generateProject/index.js", // 项目生成
  "./commands/generateComponent/index.js", // 组件生成
];

// register commands
for (let command of registedCommandList) {
  ace.addCommand(require(command)["default"]);
}

// Boot ace to execute commands
ace.wireUpWithCommander();
ace.invoke();
